<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>地址</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/Home/css/address.css"/>
		<script src="__STATIC__/js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script language="javascript" src="__STATIC__/Home/js/address.js"></script>
		<script language="javascript">
				var s=["s1","s2","s3"];
				var opt0 = ["请选择省","请选择市","请选择县（区）"];
				function setup(){
					 for(i=0;i<s.length-1;i++)
					  document.getElementById(s[i]).onclick=new Function("change("+(i+1)+")");
					 change(0);
					}
				window.onload=function(){
						setup()	
				
					};
			$(function(){
				
				$('.dj').live('click',function(){
					var dj = $('#s1').val() + '省,' + $('#s2').val() + '市,' + $('#s3').val();
					alert(dj);	
				})
				
				
				
				
				var k=0;
				$('.newadd').click(function(){
					if(k==0){
						$('.dl_all').css({display:'block'});
						k=1;
					}else if(k==1){
						$('.dl_all').css({display:'none'})
						k=0;
					}
					
				})
				
			})
		</script>
		
		<include file="__VIEW__/Common/header.html" />
<!--个人中心开始-->
<div id="myself">
	<!--左侧-->
	<div class="my_left">
		<div class="div_1">
			<div><img src="__ROOT__/{$info.face}" style="width: 100px;height: 100px;" /></div>
			<div class="zhezhao"></div>
			<p>{$hd.session.username}</p>
			<span></span>
		</div>
		<div class="div_2">
			<a href="{|U:'Search/index'}">我的订单</a>
			<ul>
				<li><a href="">全部订单</a></li>
				<li><a href="">待付款</a></li>
				<li><a href="">待收货</a></li>
				<li><a href="">待评价</a></li>
				<li><a href="">退货退款</a></li>
			</ul>
		</div>
		<div class="div_3">
			<a href="{|U:'Search/addRess'}">地址管理</a>
		</div>
		<div class="div_4">
			<a href="{|U:'Search/personal'}">基本信息</a>
			<!--<ul>
				<li><a href="">基本信息</a></li>
				<li><a href="">修改头像</a></li>
			</ul>-->
		</div>
		<div class="div_4">
			<a href="{|U:'Search/alter'}">修改头像</a>
			<!--<ul>
				<li><a href="">基本信息</a></li>
				<li><a href="">修改头像</a></li>
			</ul>-->
		</div>
	</div>
	<!--右侧-->
	<div class="my_right">
		<p>地址管理</p>
		<foreach from="$addRess" key="$k" value="$v">
			<div class="addres">
				<ul>
					<li style="width: 30px;">{$v.name}</li>
					<li style="width: 200px;">{$v.address}</li>
					<li style="width: 30px;">{$v.postcode}</li>
					<li style="width: 30px; text-indent:-20px;">{$v.phone}</li>
					<li style="width: 65px;"> 
						<!--<a href="{|U:'Search/editeaddResss',array('adid'=>$v['adid'])}" class="edit">编辑</a>-->
						<a href="{|U:'Search/addressDel',array('adid'=>$v['adid'])}">删除</a> 
					</li>
				</ul>
			</div>
		</foreach>
		
		
		<form action="{|U:'Search/addResss'}" method="post">
		<div class="p_b1">
			<a href="javascript:;"><span class="newadd"></span></a>
			<div class="dl_all">
				<dl class="dl_1">
					<dt>省&nbsp;:</dt>
					<dd>
						<select id="s1" name="province">
							<option value="" selected="selected">省份</option>
							
						</select>
						<label for="">市&nbsp;:</label>
						<select id="s2" name="city">
							<option value="" selected="selected">地级市</option>
							
						</select>
						<label for="">区&nbsp;:</label>
						<select id="s3" name="county">
							<option value="" selected="selected">市、县级市、县</option>
						
						</select>
					</dd>
				</dl>
				<dl class="dl_2">
					<dt>邮政编码&nbsp;:</dt>
					<dd><input type="text" name="postcode"/></dd>
				</dl>
				<dl class="dl_3">
					<dt>街道地址&nbsp;:</dt>
					<dd><textarea name="content" rows="" cols=""></textarea></dd>
					<p>请填写街道地址，最少5个字，最多不能超过100个字</p>
				</dl>
				<dl class="dl_4">
					<dt>收货人姓名&nbsp;:</dt>
					<dd><input type="" name="name" id="" value="" /></dd>
				</dl>
				<dl class="dl_5">
					<dt>手机&nbsp;:</dt>
					<dd><input type="" name="phone" id="" value="" /></dd>
				</dl>
				<div>
					<input type="submit" name="" class="a_left" value="" style="border:none;float: left; cursor: pointer;"/>
					<!--<a href="" class="a_left"></a>-->
					<a href="" class="a_right"></a>
				</div>
			</div>
		</div>
		</from>
		<!--<p>退货地址管理</p>
		<div class="p_b2"><span></span></div>-->
		<!--<div class="p_b3">
			<span>退货说明&nbsp;:</span>
			<div>
				<textarea name="" rows="" cols="" placeholder="退货说明中可对退货的相关事宜进行"></textarea>
				<a href="">保存</a>
			</div>
			
			
		</div>-->
	</div>
</div>
<!--个人中心结束-->

<!-- 底部文字 -->
<div id="b_font">
	<div class="bb_font">
		<div class="b_font_l">
			<a href="" class="bone"></a>
			<p>营业执照注册号：<a href="">330106000129004</a></p>
			<p>增值电信业务经营许可证：<a href="">浙B2-20110349</a></p>
			<p>ICP备案号：浙ICP备10044327号-3</p>
			<p>©2015 Mogujie.com 杭州卷瓜网络有限公司</p>		
		</div>
		<div class="b_font_r">
			<dl>
				<dt>公司</dt>
				<dd><a href="">关于我们</a></dd>
				<dd><a href="">招聘信息</a></dd>
				<dd><a href="">联系我们</a></dd>
			</dl>  

			<dl>
				<dt>消费者</dt>
				<dd><a href="">帮助中心</a></dd>
				<dd><a href="">意见反馈</a></dd>
				<dd><a href="">手机版下载</a></dd>
			</dl>
			<dl>
				<dt>商家</dt>
				<dd><a href="">免费开店</a></dd>
				<dd><a href="">商家入驻</a></dd>
				<dd><a href="">管理后台</a></dd>
			</dl>
			<dl class="llast">
				<dt>权威认证</dt>
				<dd>
					<a href="" class="llast-1"></a>
					<a href="" class="llast-2"></a>
					<a href="" class="llast-3"></a>
				</dd>
			</dl>
		</div>
	</div>
</div>




<!-- 底部文字结束 -->
</body>
</html>
